package com.ydd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ydd.entity.SysRoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 角色-菜单(SysRoleMenu)表数据库访问层
 *
 * @author makejava
 * @since 2023-04-29 12:08:38
 */
@Mapper
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {

@Select("select menu_id from sys_role_menu where role_id=#{roleNametext}")
    List<Integer> findMenuIdListByroleId(String roleNametext);

    /**
     * 根据name分页查询
     * @return
     */
    List<Integer> findMenuIdByroleId(String roleId);
}

